home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctjja86.arc
/
STATEC.ARC
/
BENCH4.C
< prev
next >
Wrap
Text File
|
1983-08-03
|
384b
|
21 lines
#include "stdio.h"
int bench4() /* floating point arithmetic benchmark */
{
int i , j ;
float x[100] , y[100] , z ;
for( i=0 ; i < 100 ; i=i+1 )
{ x[i] = i+1 ;
y[i] = 3*i ;
} ;
z=0 ;
for( j=0 ; j < 10 ; j=j+1 )
{
for( i=0 ; i < 100 ; i=i+1 )
{ z = z + x[i]*y[i] ; } ;
}
}